JCMainLookupAdminSelector=function(t){JCMainLookupAdminSelector.superclass.constructor.apply(this,[t])};BX.extend(JCMainLookupAdminSelector,JCMainLookupSelector);JCMainLookupAdminSelector.prototype.SetTokenInput=function(t,e){if(e.CONTROL_ID!=this.arParams.CONTROL_ID)return;if(!this.VALUE_CONTAINER)return;if(!e.TOKEN.DATA||!e.TOKEN.DATA.ID)return;if(!e.TOKEN.INPUT){e.TOKEN.INPUT=document.createElement("INPUT");e.TOKEN.INPUT.type="hidden";e.TOKEN.INPUT.name=this.arParams.INPUT_NAME;e.TOKEN.INPUT.value=e.TOKEN.DATA.ID}if(e.TOKEN.ACTIVE&&!e.TOKEN.INPUT.parentNode){this.AddInput(e.TOKEN.INPUT);jsUtils.onCustomEvent("onLookupInputChange",{CONTROL_ID:this.arParams.CONTROL_ID,ACTION:"add",DATA:e.TOKEN.DATA})}else if(!e.TOKEN.ACTIVE&&!!e.TOKEN.INPUT.parentNode){this.DeleteInput(e.TOKEN.INPUT);jsUtils.onCustomEvent("onLookupInputChange",{CONTROL_ID:this.arParams.CONTROL_ID,ACTION:"remove",DATA:e.TOKEN.DATA})}};JCMainLookupAdminSelector.prototype.ClearForm=function(){if(!!this.VALUE_CONTAINER){while(this.VALUE_CONTAINER.hasChildNodes()){var t=this.VALUE_CONTAINER.lastChild;this.VALUE_CONTAINER.removeChild(t)}}if(!!this.VISUAL){this.VISUAL.Reset(true,true);if(this.VISUAL.TEXT.type.toLowerCase()=="textarea"){if(undefined!=this.VISUAL.arParams.MIN_HEIGHT&&null!=this.VISUAL.arParams.MIN_HEIGHT)this.VISUAL.TEXT.style.height=this.VISUAL.arParams.MIN_HEIGHT+"px"}}};JCMainLookupAdminSelector.prototype.Clear=function(){JCMainLookupAdminSelector.superclass.Clear.apply(this,arguments)};
//# sourceMappingURL=script2.map.js